package com.zero.yygh.user.client;

import com.zero.yygh.model.user.Patient;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author zero
 * @desc 就诊人Feign接口
 * @create 2021/5/8
 */
@FeignClient("service-user")
@Repository
public interface PatientFeignClient {

    /**
     * 获取就诊人信息
     * @author zero
     * @date 2021/5/8 15:19
     * @param id  id
     * @return com.zero.yygh.model.user.Patient
     */
    @GetMapping("/api/user/patient/inner/get/{id}")
    Patient getPatient(@PathVariable("id") Long id);

}
